import {setInfo , getInfo , removeInfo} from '@/utils/storage'
export default {
    namespaced: true,
    state: ()=>({
        loginInfo:getInfo('loginInfo')
    }),
    mutations:{
        setLoginInfo(state,payload){
            state.loginInfo = payload
            setInfo('loginInfo',payload)
        },
        removeLoginInfo(state,payload){
            state.loginInfo = {}
            removeInfo(payload)
        }
    }
}